package pattern.protectproxy;

public class PersonBeanImpl implements PersonBean
{
	
	String	name;
	int		rate	= 0;
	
	@Override
	public String getName()
	{
		System.out.println(name);
		return name;
	}
	
	@Override
	public int getRating()
	{
		return rate;
	}
	
	@Override
	public void setName(String name)
	{
		this.name = name;
	}
	
	@Override
	public void setRating(int rate)
	{
		this.rate = rate;
	}
	
}
